import { createWebHashHistory, createRouter } from 'vue-router';

import HomeView from '@/views/home/index.vue'
import settingView from '@/views/setting/index.vue'

// 创建路由规则
const routes = [
  { path: '/', component: HomeView },
  { path: '/settings', component: settingView },
]

// 创建路由对象
const router = createRouter({
  history: createWebHashHistory(import.meta.env.VITE_APP_CONTEXT_PATH),
  routes
});

export default router;